package com.hx.java.util;

import java.util.Arrays;

/**
 * @author MinghuaChen
 * @date 2022-02-12 22:10
 * @description
 */
public class ArrayListDemo {

    public static void main(String[] args) {
        int arr[] = {1, 3, 5, 0};
        System.arraycopy(arr, 1, arr, 2, arr.length - 2);
        System.out.println(arr.length);
        arr[1] = 9;
        Arrays.stream(arr).forEach(System.out::println);
    }

}
